-- GENERATED SPELL FOR [Shrieking Banshee] --


function spell0_10463(pUnit, Event) --@Banshee Wail,n/a--
pUnit:FullCastSpellOnTarget(16868,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10463', 1500, 1)
end

function spell1_10463(pUnit, Event) --@Deafening Screech,n/a--
pUnit:FullCastSpellOnTarget(3589,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10463', 8311, 1)
end

function Sorts_10463(pUnit, Event)
local choix_sorts_10463 = math.random(0, 1)
if choix_sorts_10463 == 0 then
pUnit:RegisterEvent('spell0_10463', 1, 1)
end
if choix_sorts_10463 == 1 then
pUnit:RegisterEvent('spell1_10463', 1, 1)
end
end

function mob10463_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10463', math.random(1500, 3000), 1)
end

function mob10463_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10463_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10463_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10463, 1, 'mob10463_Action')
RegisterUnitEvent(10463, 2, 'mob10463_Leave')
RegisterUnitEvent(10463, 3, 'mob10463_Kill')
RegisterUnitEvent(10463, 4, 'mob10463_Die')
